﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicWarfare
		Group                          = Eccms
		Module                         = flawed eccm
		CpuUsage                       = 25.00 TF
		ReactorUsage                   = 15.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T0
		Mass                           = 100.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		SensorStrength                 = 30 Hw³
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Flawed ECCM module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:54</remarks>
    public sealed class FlawedEccm : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="FlawedEccm"/> class.
        /// </summary>
        public FlawedEccm()
            : base(
            "Flawed ECCM",
            "",
            ModuleMetaGroupsEnum.ElectronicWarfare,
            ModuleGroupsEnum.Eccms,
            TechnologyLevelsEnum.Level0,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(EcmCpuUsage<double>),25.00),
				new LazyFeature(typeof(ReactorUsage<double>),15.00),
				new LazyFeature(typeof(ModuleMass<double>),100.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 100.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.SensorStrength, 30 ){ DisplayName = "Sensor strength" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}